import { get, post } from "../utils/request.js";

export const upload = {
  // 上传报告
  uploadReport: (data) => {
    return post('/v1/user-addReport/index.html', data);
  },
  // 查询
  myReportList: (params) => {
    return get('/v1/user-myReportList/index.html',params);
  },
  // 获取封面
  getCover: () => {
    return get('/v1/param-coverPic/index.html');
  },
  // 获取报告行业
  getIndustry: () => {
    return get('/v1/param-industry/index.html');
  },
  // 修改报告
  editReport: (data) => {
    return post('/v1/user-updateReport/index.html', data);
  },
  //  切换上下架
  toggleShow: (params) => {
    return get('/v1/user-myReportShow/index.html', params);
  },
  // 删除
  deleteReport: (params) => {
    return get('/v1/user-delReport/index.html', params);
    }
}